<?php

namespace Database\Seeders;

use App\Models\NewsCategory;
use Illuminate\Database\Seeder;

class NewsCategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // NewsCategory::factory(12)->create();
        $arr = ['公司新闻', '行业新闻'];
        foreach ($arr as $name) {
            NewsCategory::create(['name' => $name]);
        }
    }
}
